import request from "@/utils/request.js";
// 获取推荐歌单
export const getResource = params => {
  return request({
    method: "GET",
    url: "/personalized",
    params
  });
};
// 获取推荐歌单
export const getdailyResource = params => {
  return request({
    method: "GET",
    url: "/recommend/resource",
    params
  });
};
// 获取歌单分类
export const getcatlist = () => {
  return request({
    method: "GET",
    url: "/playlist/catlist"
  });
};
// 获取热门歌单分类
export const gethot = () => {
  return request({
    method: "GET",
    url: "/playlist/hot"
  });
};
// 获取精品歌单
export const getplaylist = params => {
  return request({
    method: "GET",
    url: "/top/playlist",
    params
  });
};
// 获取歌单详情
export const getplaylistdetail = params => {
  return request({
    method: "GET",
    url: "/playlist/detail",
    params
  });
};
// 获取歌单评论
export const getplayliscomment = params => {
  return request({
    method: "GET",
    url: "/comment/playlist",
    params
  });
};
// 获取歌单收藏者
export const getplaylissubscribers = params => {
  return request({
    method: "GET",
    url: "/playlist/subscribers",
    params
  });
};
